home *** CD-ROM | disk | FTP | other *** search
- ;unsigned short number_serial();
-
- EXTRN _memory_model:byte
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _number_serial
- _number_serial proc near
- int 11h ;make BIOS equipment chk
- and ax,111000000000B ;clear bits 0-13
- mov cl,9 ;ready for shift
- shr ax,cl ;bits to bottom of AX
- cmp _memory_model,0 ;quit
- jle Quit ;
- db 0CBh ;RET far
- Quit: ret ;RET near
- _number_serial endp
- _TEXT ENDS
- END